package com.lcf;

import com.lcf.service.UserService;
import com.lcf.service.impl.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by lancf on 2019/4/25.
 */
public class Test001 {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");
        UserService userService =(UserService) applicationContext.getBean("userService");
        userService.add2("张三",23);
    }
}
